package com.itheima.test;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class Demo2 extends Demo1{
    private String name;

    @Override
    public void run1() {

    }

    public Demo2() {
    }

    public Demo2(int age, String name) {
        super(age);
        this.name = name;
    }

    @Override
    public void run() {
        System.out.println("===Hello World!===");
    }
}
